package com.gui.migrate;

import com.gui.connect.Command;
import com.gui.connect.Connector;
import com.gui.connect.Processor;

import java.io.*;

/**
 * Created by Gui on 2017/7/24.
 */
public class WriteContext implements Closeable {

    private Context context;

    private Connector connector;
    private Command command;
    private Processor processor;

    public WriteContext(Context context) {
        this.context = context;
    }

    public void parseRDB(File file) throws IOException {
        if (!file.exists() || file.isDirectory() || !file.canRead()) {
            throw new IOException("unable to read the file");
        }

        FileInputStream input = new FileInputStream(file);





    }

    public void sendBytes(byte[] data) throws IOException {

    }

    public void sendBytes(byte[] data, int offset, int len) throws IOException {

    }


    @Override
    public void close() throws IOException {

    }
}
